package exception;

public class MyExceptionDemo {
	public static void main(String[] args) {
		
		MyException e = new MyException("页面无法访问", 404);
		MyException e2 = new MyException("服务器内部错误", 500);
		
		System.out.println(e.getMessage());
		System.out.println(e.getCode());
		
		System.out.println(e2.getMessage());
		System.out.println(e2.getCode());
	}
}
